<template>
	<view>
		<van-field :value="content" placeholder="回复消息" rows="1" autosize type="textarea" @input="onInput">
			<template #button>
				<van-button size="small" type="primary" @click="send">发送</van-button>
			</template>
		</van-field>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: ''
			}
		},
		methods: {
			onInput(e) {
				this.content = e.detail
			},
			send() {
				console.log(this.content)
			}
		}
	}
</script>

<style lang="scss" scoped>
</style>